import React, { Component } from 'react';
import { globalContext } from './globalData/js/globalData'
const { Consumer } = globalContext
class StrideChild2 extends Component {
    state = {  } 
    render() { 
        return (<div>
            子组件child2:(和child1是兄弟)
            <Consumer>
                {
                    value=>(<div>{value.role}</div>)
                }
            </Consumer>
        </div>);
    }
}
 
export default StrideChild2;